package weibo.crawler.UO;
// default package

import java.util.Date;

import weibo4j.model.User;


/**
 * RawUserUO entity. @author MyEclipse Persistence Tools
 */

public class RawUserUO  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String uid;
     private String screenName;
     private String province;
     private Integer city;
     private String location;
     private String description;
     private String url;
     private String gender;
     private Integer followersCount;
     private Integer friendsCount;
     private Integer statusesCount;
     private Date createdAt;
     private byte verified;
     private Integer verifiedType;
     private Integer biFollowersCount;
     private String remark;
     private String verifiedReason;


    // Constructors

    /** default constructor */
    public RawUserUO() {
    }

	/** minimal constructor */
    public RawUserUO(String uid, Integer followersCount, Integer friendsCount, Integer statusesCount, byte verified, Integer biFollowersCount) {
        this.uid = uid;
        this.followersCount = followersCount;
        this.friendsCount = friendsCount;
        this.statusesCount = statusesCount;
        this.verified = verified;
        this.biFollowersCount = biFollowersCount;
    }
    
    /** full constructor */
    public RawUserUO(String uid, String screenName, String province, Integer city, String location, String description, String url, String gender, Integer followersCount, Integer friendsCount, Integer statusesCount, Date createdAt, byte verified, Integer verifiedType, Integer biFollowersCount, String remark, String verifiedReason) {
        this.uid = uid;
        this.screenName = screenName;
        this.province = province;
        this.city = city;
        this.location = location;
        this.description = description;
        this.url = url;
        this.gender = gender;
        this.followersCount = followersCount;
        this.friendsCount = friendsCount;
        this.statusesCount = statusesCount;
        this.createdAt = createdAt;
        this.verified = verified;
        this.verifiedType = verifiedType;
        this.biFollowersCount = biFollowersCount;
        this.remark = remark;
        this.verifiedReason = verifiedReason;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getUid() {
        return this.uid;
    }
    
    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getScreenName() {
        return this.screenName;
    }
    
    public void setScreenName(String screenName) {
        this.screenName = screenName;
    }

    public String getProvince() {
        return this.province;
    }
    
    public void setProvince(String province) {
        this.province = province;
    }

    public Integer getCity() {
        return this.city;
    }
    
    public void setCity(Integer city) {
        this.city = city;
    }

    public String getLocation() {
        return this.location;
    }
    
    public void setLocation(String location) {
        this.location = location;
    }

    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }

    public String getUrl() {
        return this.url;
    }
    
    public void setUrl(String url) {
        this.url = url;
    }

    public String getGender() {
        return this.gender;
    }
    
    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getFollowersCount() {
        return this.followersCount;
    }
    
    public void setFollowersCount(Integer followersCount) {
        this.followersCount = followersCount;
    }

    public Integer getFriendsCount() {
        return this.friendsCount;
    }
    
    public void setFriendsCount(Integer friendsCount) {
        this.friendsCount = friendsCount;
    }

    public Integer getStatusesCount() {
        return this.statusesCount;
    }
    
    public void setStatusesCount(Integer statusesCount) {
        this.statusesCount = statusesCount;
    }

    public Date getCreatedAt() {
        return this.createdAt;
    }
    
    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public byte getVerified() {
        return this.verified;
    }
    
    public void setVerified(byte verified) {
        this.verified = verified;
    }

    public Integer getVerifiedType() {
        return this.verifiedType;
    }
    
    public void setVerifiedType(Integer verifiedType) {
        this.verifiedType = verifiedType;
    }

    public Integer getBiFollowersCount() {
        return this.biFollowersCount;
    }
    
    public void setBiFollowersCount(Integer biFollowersCount) {
        this.biFollowersCount = biFollowersCount;
    }

    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getVerifiedReason() {
        return this.verifiedReason;
    }
    
    public void setVerifiedReason(String verifiedReason) {
        this.verifiedReason = verifiedReason;
    }
   
    public void setUser(User user) {
    	this.setBiFollowersCount(user.getbiFollowersCount());
    	this.setCity(user.getCity());
    	this.setCreatedAt(user.getCreatedAt());
    	this.setDescription(user.getDescription());
    	this.setFollowersCount(user.getFollowersCount());
    	this.setFriendsCount(user.getFriendsCount());
    	this.setGender(user.getGender());
    	this.setLocation(user.getLocation());
    	this.setProvince(this.getLocation());
    	this.setRemark(user.getRemark());    	
    	this.setUid(user.getId());
    	this.setStatusesCount(user.getStatusesCount());
    	this.setScreenName(user.getScreenName());
    	this.setVerified(user.isVerified());
    	this.setVerifiedReason(user.getVerified_reason());
    	this.setVerifiedType(user.getverifiedType());
 //   	this.setUrl(user.getURL().toString());
    }

	private void setVerified(boolean verified2) {
		if(verified2)
			this.setVerified((byte) 1);
		else
			this.setVerified((byte) 0);
	}







}